{% extends "base.html" %}
{# Copyright The IETF Trust 2016-2019, All Rights Reserved #}
{% load origin %}
{% load ietf_filters managed_groups group_filters %}
{% block title %}IETF {{ meeting_num }} meeting materials that you can edit{% endblock %}
{% block content %}
    <h1 class="mb-3">IETF {{ meeting_num }} meeting materials that you can edit</h1>
    {% if user and user.is_authenticated %}
        <ul>
            {% with user|matman_groups as user_groups %}
                {% if user_groups %}
                    {% for g in user_groups %}
                        <li>
                            {% if g|has_sessions:meeting_num %}
                                <a href="{% url 'ietf.meeting.views.session_details' num=meeting_num acronym=g.acronym %}">{{ g.acronym }}</a>
                            {% else %}
                                {{ g.acronym }} <span class="badge rounded-pill text-bg-info ms-2">No session requested</span>
                            {% endif %}
                        </li>
                    {% endfor %}
                {% else %}
                    <li>
                        You cannot manage the meeting materials for any groups.
                    </li>
                {% endif %}
            {% endwith %}
        </ul>
    {% else %}
        <p>
            You cannot manage the meeting materials for any groups.
        </p>
    {% endif %}
{% endblock %}